import { Entity, Column, PrimaryGeneratedColumn } from 'typeorm';
@Entity('dish_categories')
export class Categories {
  @PrimaryGeneratedColumn()
  id: number;

  @Column()
  merchant_id: number;

  @Column({ default: null })
  name: string;

  @Column({ default: 0 })
  sort_order: number;

  @Column({ default: 1})
  status: number;

  @Column({default: () => 'CURRENT_TIMESTAMP'})
  create_time: Date;

  @Column({default: () => 'CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP'})
  update_time: Date;
}
